﻿#include "Mylist.h"

void Listtest()
{
	Ysz::list<int> s1(5, 6);
	for (auto& x: s1)
	{
		x++;
		cout<< x<< endl;
	}

}


int main()
{
	string tmp[] = { "Aa","Bb", "Cc" };
	const Ysz::list<string> s1(tmp, tmp+3);
	Ysz::list<string> s2;
	s2 = s1;
	//s1.clear();

	tmp[1] = "aa";
	//int arr[] = { 1,2,3,4,5,6,7,8,9,10 };
	//Ysz::list<int> b(arr, arr+10);
	//b.clear();
	//Ysz::list<int> a(10,29);
	/*a.push_back(10);
	a.push_back(9);
	a.push_back(7);
	a.erase(a.begin());*/
	/*a.push_back("7");
	a.push_front("1");
	a.push_front("2");
	a.push_front("3");
	a.push_front("4");
	a.push_front("5");*/

	cout << s2.front()<<endl;
	s2.pop_front();
	s2.pop_front();

	cout << s2.front() << endl;

	Listtest();
	return 0;
}
